﻿<div class="enterprise_file_sharing" ng-show="isdata.divhide" >
	<div class="enterprise_file_sharing_bj"  ng-click="ishidefun()">
	</div>
	<div class="enterprise_file_sharing_main" ng-style="isdata.filestyle">
		<div class="enterprise_file_sharing_left"   >
			
				<div class="enterprise_file_sharing_title">
					企业文件共享<div class="close" ng-click="ishidefun()"><span>+</span></div>
				</div>
				<div class="enterprise_file_sharing_firstcolumn">
					<div class="enterprise_file_sharing_firstcolumn_top">
						<input type="text" class="form-control" placeholder="请输入企业名称" ng-model="orgsharename"  />
						<div class="btn" ng-click="getorgnameshar()" >搜索</div>
					</div>
					<div class="enterprise_file_sharing_firstcolumn_bottom">
					<div class="enterprise_file_sharing_firstcolumn_weishuru" ng-if="!sososhare" ><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-bi-copy"></use></svg>请输入需要给的企业名</div>

					<div class="enterprise_file_sharing_firstcolumn_weizhaodao" ng-if="sharenull"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-roundclose"></use></svg>未找到所需企业</div>

					<div class="enterprise_file_sharing_dropdown_suosuo" ng-if="sososhare && orgnameshar.length>0">
						<ul class="dropdown-menu">
							<!--<li>
							北京新启科技有限公司
								<div class="enterprise_file_sharing_dropdown_right">
								<div  ng-click="openshare()"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-yanjing"></use></svg>查看
									</div>
									<div><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-gongxiang"></use></svg>共享</div>
								</div>
							</li>-->

                            <li  ng-repeat="orgitem in orgnameshar" >
							{{orgitem.orgName}}
								<div class="enterprise_file_sharing_dropdown_right">
								<div  ng-click="openshare(orgitem.orgid,orgitem.orgName)"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-yanjing"></use></svg>查看
									</div>
									<div ng-click="setsharorgfile(orgitem)" ng-if="orgitem.share==0" ><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-gongxiang"></use></svg>共享</div>

                                    <div ng-click="setsharorgfile(orgitem.orgid)" ng-if="orgitem.share==1" style="width: 50px;"  ><span style="color: #999; text-align: right;" >已共享</span></div>

								</div>
							</li>

						</ul>
					</div>
				</div>
			</div>
			<div class="enterprise_file_sharing_sharesuccess_title">文件已共享给以下企业</div>
			<div class="enterprise_file_sharing_sharesuccess">
            <img ng-if="fileshare.length==0"  src="/images/null.png"  style="width:100%;"  />

				<ul ng-if="fileshare.length>0">
					<!--<li>
						<div class="enterprise_file_sharing_sharesuccess_first"><div class="enterprise_file_sharing_qiyename"  href="javascript:void()" ng-click="openshare()">北京新启科技有限公司</div>
							<div class="enterprise_file_sharing_sharesuccess_first_right"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-shanchu"></use></svg>删除共享</div>
						</div>

							<div class="enterprise_file_sharing_sharesuccess_second">
								<div>课程视频<div class="enterprise_file_sharing_close" ng-click="ishidefun()"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-guanbi"></use></svg> </div></div>
							</div>
					</li>-->

                    <li  ng-repeat="fileitem in fileshare" >
						<div class="enterprise_file_sharing_sharesuccess_first"><div class="enterprise_file_sharing_qiyename"  href="javascript:void()" ng-click="openshare(fileitem.orgid,fileitem.orgName)">{{fileitem.orgName}}</div>
							<div class="enterprise_file_sharing_sharesuccess_first_right" ng-click="delfile(fileitem.upid,fileitem.orgid)"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-shanchu"></use></svg>删除共享</div>
						</div>

							<div class="enterprise_file_sharing_sharesuccess_second"  ng-repeat="selitem in fileitem.selfileshare" >
								<div>{{selitem.fileName}}<div class="enterprise_file_sharing_close"  ng-click="delfile(selitem.upId,fileitem.orgid)"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-guanbi"></use></svg> </div></div>
							</div>
					</li>

				</ul>

			</div>
		</div>
		
		<div class="enterprise_file_sharing_right" ng-if="isshare" >
			<div class="enterprise_file_sharing_title">{{ShareOrgName}}<span class="title">已共享文件</span><div class="close" ng-click="closeshare()"><span>+</span></div>
			</div>
			<ul class="enterprise_file_sharing_right_main">
				<!--<li>
					<div class="enterprise_file_sharing_right_img">
						<img src="/images/train/zhishikuimg.png" alt="">
					</div>
					<div class="enterprise_file_sharing_right_name">课程视频.mp4</div>
					<div class="enterprise_file_sharing_sharesuccess_delect"><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-shanchu"></use></svg>删除共享</div>
				</li>-->

                <li  ng-repeat="fileitem in sharorgfile" >
					<div class="enterprise_file_sharing_right_img">
						<img src="/images/train/zhishikuimg.png" alt="">
					</div>
					<div class="enterprise_file_sharing_right_name">{{fileitem.fileName}}</div>
					<div class="enterprise_file_sharing_sharesuccess_delect" ng-click="delfile2(fileitem.upid,fileitem.orgid)" ><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-shanchu"></use></svg>删除共享</div>
				</li>

			</ul>
		</div>
	</div>
</div>